home *** CD-ROM | disk | FTP | other *** search
/ 360 Degrees of: Yellowstone National Park / 360 Degrees of: Yellowstone National Park.iso / pc / data / exhibit.cst / 00023_goto tactilepanos.ls < prev    next >
Encoding:
Text File  |  2008-04-21  |  1.2 KB  |  45 lines

  1. property spriteNum
  2.  
  3. on mouseDown
  4.   --Set a variable that is used to check what item the user clicked
  5.   global mouseclickedon
  6.   mouseclickedon = spriteNum
  7.   
  8. end
  9.  
  10. on mouseUp
  11.   --Check to make sure the mouse was clicked within the sprite (ensures that the cursor is not clicked elsewhere and then
  12.   --lifted up on this sprite) variable is set in mouseDown handlers
  13.   global mouseclickedon
  14.   if mouseclickedon = spriteNum then
  15.     
  16.     --This sets the variable that tells where to go
  17.     global selectedmap
  18.     global submap
  19.     global submappresent
  20.     global tactilepanos
  21.     tactilepanos = 195
  22.     selectedmap = tactilepanos
  23.     submap = 0
  24.     submappresent = -1
  25.     
  26.     --this tells that we want to show parkinfo for that park and indicate that we are not on the main parks map
  27.     global showparkinfo
  28.     global parksmap
  29.     global showpanos
  30.     showpanos = 0
  31.     showparkinfo = 1
  32.     parksmap = 0
  33.     showhide
  34.     
  35.     --This tells the playback head that there's been a map change. The score script will then bring up a predetermined pano
  36.     global mapchange
  37.     mapchange = 1
  38.     --The predetermined pano is set by panonumber...This is the memberNum of the button for the pano content
  39.     global panonumber
  40.     panonumber = 1
  41.     
  42.   end if
  43.   
  44. end
  45.